package com.drdj.kitty;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;

public class MainActivity extends BaseActivity {

	// [[ test code
	public static final boolean IS_TEST = false;
	private static boolean isFirst = true;
	// ]] test code
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setTitle("Hello Kitty Castle");
		
		setAsMain();
		
		// [[ test code
		if (IS_TEST) {
			if (isFirst) {
				SharedPreferences prefs = getSharedPreferences("pref", MODE_PRIVATE);
				SharedPreferences.Editor ed = prefs.edit();
				ed.putInt(CouponActivity.COUPON_TYPE_PREF, -1);
				ed.commit();
				isFirst = false;
			}
		}
		// ]] test code
	}
	
}